home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / fghedge.zip / DEFS.H < prev    next >
Text File  |  1993-10-11  |  1KB  |  70 lines

  1. #include "hedge.h"
  2. #include "common.h"
  3.  
  4. #include <fastgraf.h>
  5. #include <string.h>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #ifdef __TURBOC__
  9.    #include <alloc.h>
  10. #else
  11.    #include <malloc.h>
  12. #endif
  13.  
  14. #ifndef common_c
  15.    #define DECLARE extern
  16. #else
  17.    #define DECLARE
  18. #endif
  19.  
  20. /* global variables */
  21.  
  22. DECLARE int clockspeed;
  23. DECLARE int stall_time;
  24. DECLARE int old_mode;
  25. DECLARE int seed;
  26.  
  27. DECLARE FILE *tstream;
  28. DECLARE char abort_string[80];
  29.  
  30. /* maze path variables */
  31.  
  32. DECLARE unsigned char layout[50][38];
  33. DECLARE char attributes[240];
  34. DECLARE char path[2000];
  35. DECLARE unsigned char visited [50][38];
  36. DECLARE int path_index;
  37. DECLARE int n_nodes;
  38.  
  39. /* mouse variables */
  40.  
  41. DECLARE int buttons;
  42. DECLARE int mouse;
  43. DECLARE int xmouse, ymouse;
  44.  
  45. #define HORIZONTAL 16
  46. #define VERTICAL   32
  47.  
  48. #define VISUAL   0
  49. #define HIDDEN   1
  50. #define SPARE   63
  51.  
  52. #define TOP      1
  53. #define BOTTOM   2
  54. #define LEFT     4
  55. #define RIGHT    8
  56.  
  57. #define MAXROWS 37
  58. #define MAXCOLS 50
  59.  
  60. #define F1      59
  61.  
  62. #define OFF      0
  63. #define ON       1
  64.  
  65. #define FALSE    0
  66. #define TRUE     1
  67.  
  68. #define MAX(x,y) ((x) > (y)) ? (x) : (y)
  69. #define MIN(x,y) ((x) < (y)) ? (x) : (y)
  70.